import java.util.logging.Logger;

public class TcpClientThread extends Thread {

    TcpClient tcpClient;

    Logger logger = Logger.getLogger(TcpServerThread.class.getName());

    public TcpClientThread() {
        super();
        tcpClient = new TcpClient();
        tcpClient.socketInitial();
    }

    @Override
    public void run()
    {
        logger.info("TcpThread");
        StateObject stateObjectSend = new StateObject("Sent from client: ");
        stateObjectSend.setCurrentY(111);
        tcpClient.send(stateObjectSend);
        //tcpClient.receive();
    }
}